package org.jeecg.modules.sistersophie.mapper;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.sistersophie.entity.AccountInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: account_info
 * @Author: jeecg-boot
 * @Date:   2021-05-30
 * @Version: V1.0
 */
public interface AccountInfoMapper extends BaseMapper<AccountInfo> {

    int addAccount(@Param("id") Integer id, @Param("amount")BigDecimal amount,@Param("version") Integer version);

    int subAccount(@Param("id") Integer id, @Param("amount")BigDecimal amount,@Param("version") Integer version);

    int freeAccount(@Param("id") Integer id, @Param("amount")BigDecimal amount,@Param("version") Integer version);

    int unFreeAccount(@Param("id") Integer id, @Param("amount")BigDecimal amount,@Param("version") Integer version);

}
